package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 动态对象 app_dynamic
 *
 * @author ruoyi
 * @date 2023-02-27
 */
public class AppDynamic extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date crtTime;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 用户昵称
     */
    @Excel(name = "用户昵称")
    private String userName;

    /**
     * 用户头像
     */
    @Excel(name = "用户头像")
    private String userHeadImg;

    /**
     * 类型，0：纯文本，1：图片，2：视频
     */
    @Excel(name = "类型，0：纯文本，1：图片，2：视频")
    private Integer type;

    /**
     * 文本内容
     */
    @Excel(name = "文本内容")
    private String content;

    /**
     * 图片json，['','']
     */
    @Excel(name = "图片json，['','']")
    private String imgs;

    /**
     * 视频封面
     */
    @Excel(name = "视频封面")
    private String videoCover;

    /**
     * 一张图片其对应的宽高
     */
    @Excel(name = "一张图片其对应的宽高")
    private String imgWidthHigh;

    /**
     * 经度
     */
    @Excel(name = "经度")
    private String lng;

    /**
     * 纬度
     */
    @Excel(name = "纬度")
    private String lat;

    /**
     * 位置
     */
    @Excel(name = "位置")
    private String location;

    /**
     * 提醒用户ids
     */
    @Excel(name = "提醒用户ids")
    private String remindUserIds;

    /**
     * 查看状态，0：公开，1：私密，2：部分人可见，3：部分不可见
     */
    @Excel(name = "查看状态，0：公开，1：私密，2：部分人可见，3：部分不可见")
    private Integer seeState;

    /**
     * 可查看用户ids
     */
    @Excel(name = "可查看用户ids")
    private String seeUserIds;

    /**
     * 不能查看用户ids
     */
    @Excel(name = "不能查看用户ids")
    private String refuseUserIds;

    /**
     * 点赞数
     */
    @Excel(name = "点赞数")
    private Integer likeCount;

    /**
     * 评论数
     */
    @Excel(name = "评论数")
    private Integer commentCount;

    @TableField(exist = false)
    private List<Long> userIds;

    @ApiModelProperty("是否点赞，0：否，1：是")
    @TableField(exist = false)
    private Integer isLike;

    @ApiModelProperty("点赞列表")
    @TableField(exist = false)
    private List<AppDynamicLike> likeList;

    @ApiModelProperty("评论列表")
    @TableField(exist = false)
    private List<AppDynamicComment> commentList;

    public Integer getIsLike() {
        return isLike;
    }

    public void setIsLike(Integer isLike) {
        this.isLike = isLike;
    }

    public List<AppDynamicLike> getLikeList() {
        return likeList;
    }

    public void setLikeList(List<AppDynamicLike> likeList) {
        this.likeList = likeList;
    }

    public List<AppDynamicComment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<AppDynamicComment> commentList) {
        this.commentList = commentList;
    }

    public List<Long> getUserIds() {
        return userIds;
    }

    public void setUserIds(List<Long> userIds) {
        this.userIds = userIds;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }

    public Date getCrtTime() {
        return crtTime;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserHeadImg(String userHeadImg) {
        this.userHeadImg = userHeadImg;
    }

    public String getUserHeadImg() {
        return userHeadImg;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setImgs(String imgs) {
        this.imgs = imgs;
    }

    public String getImgs() {
        return imgs;
    }

    public void setVideoCover(String videoCover) {
        this.videoCover = videoCover;
    }

    public String getVideoCover() {
        return videoCover;
    }

    public void setImgWidthHigh(String imgWidthHigh) {
        this.imgWidthHigh = imgWidthHigh;
    }

    public String getImgWidthHigh() {
        return imgWidthHigh;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLng() {
        return lng;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLat() {
        return lat;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return location;
    }

    public void setRemindUserIds(String remindUserIds) {
        this.remindUserIds = remindUserIds;
    }

    public String getRemindUserIds() {
        return remindUserIds;
    }

    public void setSeeState(Integer seeState) {
        this.seeState = seeState;
    }

    public Integer getSeeState() {
        return seeState;
    }

    public void setSeeUserIds(String seeUserIds) {
        this.seeUserIds = seeUserIds;
    }

    public String getSeeUserIds() {
        return seeUserIds;
    }

    public void setRefuseUserIds(String refuseUserIds) {
        this.refuseUserIds = refuseUserIds;
    }

    public String getRefuseUserIds() {
        return refuseUserIds;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("crtTime", getCrtTime())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("userHeadImg", getUserHeadImg())
                .append("type", getType())
                .append("content", getContent())
                .append("imgs", getImgs())
                .append("videoCover", getVideoCover())
                .append("imgWidthHigh", getImgWidthHigh())
                .append("lng", getLng())
                .append("lat", getLat())
                .append("location", getLocation())
                .append("remindUserIds", getRemindUserIds())
                .append("seeState", getSeeState())
                .append("seeUserIds", getSeeUserIds())
                .append("refuseUserIds", getRefuseUserIds())
                .append("likeCount", getLikeCount())
                .append("commentCount", getCommentCount())
                .toString();
    }
}
